#include"Processbar.h"
#include <unistd.h>

void download()
{
  double filesize = 100*1024*1024*1.0;
  double current = 0.0;
  double bandwidth = 1024*1024*1.0;

  while(current <= filesize)
  {
    ProcBar(filesize,current);
    current += bandwidth;
    usleep(10000);
  }
 printf("\n");

}

int main()
{

  //ForTest();
  download();
  //ProcBar(100.0,50.0);
  //ProcBar(100.0,10.0);
  //ProcBar(100.0,20.0);

  return 0;
}
